  -- Kalecgos --
function spell0_24850(pUnit, Event) --@Arcane Buffet,n/a--
pUnit:FullCastSpellOnTarget(45018,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24850', 40374, 1)
end
function spell1_24850(pUnit, Event) --@Berserk,n/a--
pUnit:FullCastSpellOnTarget(26662,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24850', 809, 1)
end
function spell2_24850(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(44799,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24850', 13000, 1)
end
function spell3_24850(pUnit, Event) --@Tail Lash,n/a--
pUnit:FullCastSpellOnTarget(45122,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24850', 2435, 1)
end
function spell4_24850(pUnit, Event) --@Wild Magic,Heal--
pUnit:FullCastSpellOnTarget(44978,pUnit)
pUnit:RegisterEvent('Sorts_24850', 20425, 1)
end
function spell5_24850(pUnit, Event) --@Wild Magic,Heal--
pUnit:FullCastSpellOnTarget(45001,pUnit)
pUnit:RegisterEvent('Sorts_24850', 20365, 1)
end
function spell6_24850(pUnit, Event) --@Wild Magic,Heal--
pUnit:FullCastSpellOnTarget(45002,pUnit)
pUnit:RegisterEvent('Sorts_24850', 20403, 1)
end
function spell7_24850(pUnit, Event) --@Wild Magic,Heal--
pUnit:FullCastSpellOnTarget(45004,pUnit)
pUnit:RegisterEvent('Sorts_24850', 20381, 1)
end
function spell8_24850(pUnit, Event) --@Wild Magic,Heal--
pUnit:FullCastSpellOnTarget(45006,pUnit)
pUnit:RegisterEvent('Sorts_24850', 20371, 1)
end
function spell9_24850(pUnit, Event) --@Wild Magic,Heal--
pUnit:FullCastSpellOnTarget(45010,pUnit)
pUnit:RegisterEvent('Sorts_24850', 20448, 1)
end
function Sorts_24850(pUnit, Event)
choix_sorts_24850 = math.random(0, 9)
if choix_sorts_24850 == 0 then
pUnit:RegisterEvent('spell0_24850', 1, 1)
end
if choix_sorts_24850 == 1 then
pUnit:RegisterEvent('spell1_24850', 1, 1)
end
if choix_sorts_24850 == 2 then
pUnit:RegisterEvent('spell2_24850', 1, 1)
end
if choix_sorts_24850 == 3 then
pUnit:RegisterEvent('spell3_24850', 1, 1)
end
if choix_sorts_24850 == 4 then
pUnit:RegisterEvent('spell4_24850', 1, 1)
end
if choix_sorts_24850 == 5 then
pUnit:RegisterEvent('spell5_24850', 1, 1)
end
if choix_sorts_24850 == 6 then
pUnit:RegisterEvent('spell6_24850', 1, 1)
end
if choix_sorts_24850 == 7 then
pUnit:RegisterEvent('spell7_24850', 1, 1)
end
if choix_sorts_24850 == 8 then
pUnit:RegisterEvent('spell8_24850', 1, 1)
end
if choix_sorts_24850 == 9 then
pUnit:RegisterEvent('spell9_24850', 1, 1)
end
end
function mob24850_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24850', math.random(1500, 3000), 1)
end
function mob24850_Leave(pUnit, Event)
end
function mob24850_Kill(pUnit, Event)
end
function mob24850_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(24850, 1, 'mob24850_Action')
RegisterUnitEvent(24850, 2, 'mob24850_Leave')
RegisterUnitEvent(24850, 3, 'mob24850_Kill')
RegisterUnitEvent(24850, 4, 'mob24850_Die')
